package com.link.base.base.crowd.dao.mybatis.mapper;

import com.link.base.base.crowd.model.CrowdAccntDet;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 人群消费者明细表- 
 *
 * @author 张宇浩
 * @date 2019/06/01 15:30
 */
public interface CrowdAccntDetMapper extends BasicMapper<CrowdAccntDet> {

    /**
     * 根据lnk_crowd_acct 中A类用户，查询得到openId类型的 C类用户
     *
     * @author zhangyuhao
     * @date 2019/06/01 15:57
     * @param entity openid类别
     */
    List<CrowdAccntDet> queryAllAccountByTypeA(CrowdAccntDet entity) throws Exception;

    /**
     * 根据lnk_crowd_acct 中A类用户，查询得到openId类型的 C类用户
     *
     * @author zhangyuhao
     * @date 2019/06/01 15:57
     * @param entity phone类别
     */

    List<CrowdAccntDet> queryAllAccountPhoneByTypeA(CrowdAccntDet entity) throws Exception;

    void batchInsertAccntDet(List<CrowdAccntDet> list) throws Exception;
}
